package chase.myrewards.beans;

import java.io.Serializable;

/**
 * This class is a bean for the customer settings.
 * 
 * @author Archi Pandurangi
 *
 */
public class Customer implements Serializable {
	
	/**
	 * This number must be unique for every class. And it can never change.
	 * You have to generate it automatically by clicking on the class name and
	 * then hitting Ctrl+1.  Then click on Add generated serial version ID. Then
	 * copy these comments on top of the generated id.
	 * 
	 * @serial serialVersionUID
	 */
	private static final long serialVersionUID = -5859857100236091921L;
	
	// May 10th changed customerID to customerId

	private String customerId;
	private String password;
	private boolean showLocations;
	private boolean favorites;
	private boolean recent;

	public Customer() {
		this.customerId = "0";
		this.password ="0";
	}

	public Customer(String customer){
		setCustomerID(customer);
	}

	public String getCustomerID() {
		return customerId;
	}

	public void setCustomerID(String customerId) {
		this.customerId = customerId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean getShowLocations() {
		return showLocations;
	}

	public void setShowLocations(boolean showLocations) {
		this.showLocations = showLocations;
	}

	public boolean getFavorites() {
		return favorites;
	}

	public void setFavorites(boolean favorites) {
		this.favorites = favorites;
	}

	public boolean getRecent() {
		return recent;
	}

	public void setRecent(boolean recent) {
		this.recent = recent;
	}
	
	public String toString(){
		StringBuffer sbuff = new StringBuffer();
		sbuff.append("\n");
		sbuff.append("Customer Id: " + this.customerId);
		sbuff.append("\n");
		sbuff.append("Password: " + this.password);
		sbuff.append("\n");
		sbuff.append("showLocations: " + this.showLocations);
		sbuff.append("\n");
		sbuff.append("favorites: " + this.favorites);
		sbuff.append("\n");
		sbuff.append("recent: " + this.recent);
		sbuff.append("\n");
		return sbuff.toString();
	}
}
